﻿<Window x:Class="MediaLibrary.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    WindowStartupLocation="CenterScreen"
    Title="AMP" 
    MinWidth="700" 
    MinHeight="400" 
    Closing="MainWindow_Closing"
    MouseMove="MainWindow_MouseMove"
    MouseLeftButtonUp="MainWindow_MouseLeftButtonUp"
    MouseLeftButtonDown="MainWindow_MouseLeftButtonDown"
    StateChanged="MainWindow_OnStateChanged" 
    LocationChanged="MainWindow_LocationChanged" 
    SizeChanged="MainWindow_OnSizeChanged"
    BorderThickness="0"
    BorderBrush="Transparent"
    AllowDrop="True" 
    AllowsTransparency="False" 
    FontFamily="Trebuchet MS">
    <Window.Background>
        <ImageBrush ImageSource="resources/background2.jpg" />
    </Window.Background>
    
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="340*"/>
            <ColumnDefinition Width="219" />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Height="35" Margin="6 0 0 0" >
            <ToggleButton x:Name="nowPlayingButton" Click="nowPlayingButton_Click" ClickMode="Release" Template="{StaticResource mainMenuButton}">now playing</ToggleButton>
            <ToggleButton x:Name="personalButton" Click="personalButton_Click" ClickMode="Release" Template="{StaticResource mainMenuButton}">personal</ToggleButton>
            <ToggleButton x:Name="musicButton" Click="musicButton_Click" ClickMode="Release" Template="{StaticResource mainMenuButton}">music</ToggleButton>
            <ToggleButton x:Name="videoButton" Click="videoButton_Click" ClickMode="Release" Template="{StaticResource mainMenuButton}">video</ToggleButton>
            <ToggleButton x:Name="playListButton" Click="playListButton_Click" ClickMode="Release" Template="{StaticResource mainMenuButton}">playlists</ToggleButton>
        </StackPanel>

        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0 0 6 0">
            <TextBox x:Name="searchTextBox" Margin="0 6 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Height="23" CharacterCasing="Lower" GotFocus="searchTextBox_GotFocus" Width="160" LostFocus="searchTextBox_LostFocus" KeyDown="searchTextBox_KeyDown" />
            <ToggleButton x:Name="settingsButton" Margin="0 6 0 0" HorizontalAlignment="Right" Click="settingsButton_Click" Template="{StaticResource settingsButton}" FontSize="12">settings</ToggleButton>
        </StackPanel>

        <Frame x:Name="pagePlaceHolder" AllowDrop="True" Grid.Row="1" NavigationUIVisibility="Hidden" Grid.ColumnSpan="3" Margin="6" />
    </Grid>
</Window>
